import dao.UserInfoMapper;
import model.UserInfo;
import org.junit.Test;
import utils.MyBatisUtil;

import java.util.List;

/**
 * @Author XW
 * @Date 2022/4/13
 * @Time 20:13
 **/
public class test {
    @Test
    public    void t1() {
        UserInfoMapper userInfoMapper =   MyBatisUtil.getSession().getMapper(UserInfoMapper.class);
        List<UserInfo>  us  =  userInfoMapper.findAll();
        List<UserInfo>  us2  =  userInfoMapper.findAll();
        System.out.println(us);
        System.out.println(us2);
        System.out.println(us==us2);


    }

}
